doctype

include mixins.jade

html
    head
        meta(charset="utf-8")
        title= self.api.name || 'API Documentation'
        link(rel="stylesheet", href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css")
        style!= self.css
    body.preload
        #nav-background
        div.container-fluid.triple
            .row
                block nav
                    +Nav()

                .content
                    #right-panel-background

                    block content
                        +ContentTriple()

                    .middle
                        p.text-muted(style="text-align: center;")
                            | Generated by&nbsp;
                            a.aglio(href="https://github.com/danielgtaylor/aglio") aglio
                            | &nbsp;on #{self.date().format('DD MMM YYYY')}

        script: include scripts.js

        if self.livePreview
            script(src="/socket.io/socket.io.js")
            script.
                var socket = io();
                socket.on('refresh', refresh);
                socket.on('reconnect', function () {
                    socket.emit('request-refresh');
                });
